﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using FilmBookingTicket.Models;


namespace FilmBookingTicket.Controllers
{
    public class HomeController : Controller
    {
        private FilmTicketBookingSystemEntities db = new FilmTicketBookingSystemEntities();
        //
        // GET: /Home/

        public ActionResult Index()
        {
            var films = db.Films.Include(f => f.Category).Include(f => f.Format);
            return View(films.ToList());
        }
    }
}
